import org.apache.rocketmq.client.producer.SendResult;
import org.junit.Test;
import org.springframework.data.geo.Point;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;


/**
 * @author 李文
 * @create 2017-11-08 11:00
 **/
public class test1
{


    @Test
    public void test1() {


        SendResult s=null;
        s.getSendStatus();

        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println(dateTime.toString());
        dateTime.toInstant((ZoneOffset) ZoneId.of("Asia/Shanghai")).toEpochMilli();
        System.out.println(dateTime);

    }

    @Test
    public void test() {


        Query q = new Query();
        q.addCriteria(Criteria.where("coordinates").near(new Point(111, 11)));


        long b = System.currentTimeMillis();

        System.out.println(b);


        long s = System.currentTimeMillis();

        System.out.println(s);
        long c = s - b;

        c = c / 1000;
        System.out.println(c);


    }

}
